project(xncc_capture)
include(../head.cmake)
message("######### print some sys info #########")
message(${CMAKE_CURRENT_SOURCE_DIR})
message(${CMAKE_SYSTEM})
message(${CMAKE_SYSTEM_NAME})
message(${CMAKE_SYSTEM_VERSION})
message(${CMAKE_SYSTEM_PROCESSOR})
message("######### print some sys info end  #########")
include_directories(./inc)
include_directories(../lib_capture/inc/)

# 查找当前目录下的所有源文件
# 并将名称保存到 DIR_SRCS 变量
aux_source_directory(../lib_capture/src/ SRC_LIST)
aux_source_directory(./src SRC_LIST)

link_directories(${PROJECT_SOURCE_DIR}/../lib)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

add_executable(${PROJECT_NAME} ${SRC_LIST})
target_link_libraries(${PROJECT_NAME}
    pthread
)
